﻿using System.Collections.Generic;
using com.guojin.core.io.message;
using com.guojin.mj.net.message.game;
using com.guojin.mj.net.message.login;
using UnityEngine;
using UnityEngine.UI;

// 不允许挂在到任何节点上
public class GameData
{
    private static GameData instance;
    public static GameData GetInstance()
    {
        if (instance == null)
            instance = new GameData();
        return instance;
    }

    public List<Message> messagelist;
    public bool CanAddMessage = false; //是否可以开始往messagelist存消息了

    public string avatar; //玩家头像地址

    public bool isReadyClean = false;

    public int level; //玩家代理等级
    public int locationIndex; //玩家号
    public string longitude; //经度
    public string latitude; //维度

    public bool forbidPlayerVoice; //禁止玩家语音
    public bool isClubManager;
    public string place;
    public string announcement; //广播
    public string userID; //玩家ID
    public string userIP; //玩家的IP


    public string userName;      //玩家名字
    public string voteUserId;    //发起投票的玩家ID  (用于将自己显示为同意)

}